var banner = document.querySelector(".banner");
var middle = document.querySelector(".middle");
var divs = document.querySelectorAll(".middle>div");
var cirs = document.querySelectorAll(".cir");
var w = banner.offsetWidth;
middle.style.width = w * divs.length + "px";
var page = 0;
var timer = null;
timer2 = null;
timer = setInterval(function() {
	page++;
	if (page > divs.length - 1) {
		page = 0;
	}
	middle.style.left = -w * page + "px";
}, 2000)
timer2 =setInterval(function(){
	for (var i=0;i<cirs.length;i++){
		cirs[i].style.height=".1rem";
		cirs[i].style.width=".1rem";	
	}
		cirs[page].style.height=".14rem";
		cirs[page].style.width=".14rem";
},2000)
var cont_btn = document.querySelector(".cont_btn");
var order1=document.querySelector(".achie img:nth-child(1)");
var order2=document.querySelector(".achie img:nth-child(2)");
var art1 = document.querySelector(".art>div:nth-child(1)");
var art2 = document.querySelector(".art>div:nth-child(2)");
var art3 = document.querySelector(".art>div:nth-child(3)");
var book_btn = document.querySelector(".book_btn");
cont_btn.onclick=function(){
	alert("关注")
}
order1.onclick = function(){
	alert("订阅1")
}
order2.onclick = function(){
	alert("订阅2")
}
art1.onclick=function(){
	alert("星周刊")
}
art2.onclick=function(){
	alert("星月刊")
}
art3.onclick=function(){
	alert("星内参")
}
book_btn.onclick=function(){
	alert("打包下载")
}
